package org.example.shoppingmall.entity;

public class Order {
    /**
     * 订单id
     */
    private Integer id;
    /**
     * 收货地址
     */
    private String address;
    /**
     * 购买用户id
     */
    private Integer user_id;
    /**
     * 商品id
     */
    private Integer goods_id;
    /**
     * 购买数量
     */
    private Integer quantity;
    /**
     * 购买者手机号
     */
    private String phone;
    /**
     * 订单状态 0待发货，1已发货，2待收货
     */
    private Integer status;

    public Order() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(Integer goods_id) {
        this.goods_id = goods_id;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Order(Integer id, String address, Integer user_id, Integer goods_id, Integer quantity, String phone, Integer status) {
        this.id = id;
        this.address = address;
        this.user_id = user_id;
        this.goods_id = goods_id;
        this.quantity = quantity;
        this.phone = phone;
        this.status = status;
    }
}
